package com.example.votemanage.controller;

import com.example.votemanage.config.HttpClientUtil;
import com.example.votemanage.config.WxApiConfig;
import org.json.JSONObject;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/wxapi")
public class WxApiController {

    @RequestMapping("/getAccessToken")
    public String getAccessToken(){
        return HttpClientUtil.doGet(WxApiConfig.ACCESS_TOKEN);
    }

}
